<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <p>今年<strong>小明</strong>就要<strong>18</strong>岁了，终于要升入<strong>大学</strong>了</p>
    <script>
        let p = document.querySelector('p')
        let name = '小明'
        let age = 18
        let school = '大学'
        // p.innerHTML = '<p>今年<strong>'+name+'</strong>就要<strong>'+age+'</strong>岁了，终于要升入<strong>'+school+'</strong>了</p>'
        p.innerHTML = `
        <p>今年<strong>${name}</strong>就要<strong>${age}</strong>岁了，终于要升入<strong>${school}</strong>了</p>
        `

        //${}插 值 表达式
    </script>
</body>
</html>